Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @font-face for CSS Fonts Level 4 #237

Merged
merged 2 commits into from
Jun 19, 2018
Merged

Conversation

wbamberg
Copy link
Contributor

This updates the font property descriptors font-style, font-stretch, font-weight, for CSS Fonts Level 4: https://drafts.csswg.org/css-fonts-4/#font-prop-desc.

@lahmatiy , since you recently rewrote this syntax, I'd be very happy to get your review on this change.

(Also, what do you think of removing the newline characters? I'd prefer for the syntax not to try to determine the presentation, but leave that up to the application.)

@lahmatiy
Copy link
Contributor

@wbamberg I think you should change a syntaxes in descriptors section, instead of at-rule syntax (see #222).

<font-weight-absolute> <font-weight-absolute>?

might be

<font-weight-absolute>{1,2}

Another case

[ <angle> | <angle> <angle> ] ?

Multipliers must stick to a group.

@wbamberg
Copy link
Contributor Author

@lahmatiy , does this look better? :)

@lahmatiy
Copy link
Contributor

@wbamberg Yep, that's better. But looks like <font-stretch-absolute> and <font-weight-absolute> syntaxes are not defined.

@wbamberg
Copy link
Contributor Author

looks like and syntaxes are not defined.

They should be in #235 and #234.

@wbamberg wbamberg requested a review from Elchi3 June 17, 2018 19:01
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Elchi3 Elchi3 merged commit f9b6921 into mdn:master Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants